package com.crane.oss.sys.bean.request.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author bealon
 * @email ccsu123456@qq.com
 * @date 2018年12月28日 19时42分58秒
 */
@Getter
@Setter
@ToString
@ApiModel(description = "修改角色参数")
public class UpdateRoleRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id", name = "id")
    @NotNull(message = "id不能为空")
    private Long id;


    @ApiModelProperty(value = "角色名称", name = "name")
    @NotNull(message = "name不能为空")
    @Size(max = 100, message = "name长度超长")
    private String name;

    @ApiModelProperty(value = "备注", name = "remark")
    @Size(max = 100, message = "remark长度超长")
    private String remark;


    @ApiModelProperty(value = "单继承", name = "parentId")
    private Long parentId;


    @ApiModelProperty(value = "0 禁用 1 启用", name = "status")
    private Integer status;


    @ApiModelProperty(value = "菜单列表", name = "menuIdList")
    /**
     * 菜单列表
     */
    private List<Long> menuIdList;

}
